package com.baizhi.buff;

import java.io.BufferedOutputStream;
import java.io.FileOutputStream;
import java.io.IOException;

/**
 * 缓冲字节输出流，这是一条高级流，需要连接在字节输出流上
 */
public class BufferedOutputStreamDemo {
    public static void main(String[] args) throws IOException {
        FileOutputStream fos = new FileOutputStream("./javase_io/aaa.text"); //这是节点流
        BufferedOutputStream bos = new BufferedOutputStream(fos);

        bos.write("先帝创业未半".getBytes());

        bos.close();

    }
}
